/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) 2023-present Kaleidos INC
*/

@import url("tools/typography.css");
@import url("tools/dropdown.css");

:host {
  display: block;
  inline-size: 300px;
  padding: var(--spacing-16);
}

ul {
  margin: 0;
  padding: 0;
}

.menu-title {
  border-block-end: 1px solid var(--color-gray30);
  color: var(--color-gray80);
  display: block;
  font-size: var(--font-size-small);
  padding-block-end: var(--spacing-8);
  text-transform: uppercase;
}

li {
  margin-block-end: 0;
}

.project-workspace {
  @mixin font-small;

  color: var(--color-gray70);
}

.pinned-projects {
  border: 0;

  & .project-action {
    inline-size: 100%;

    /* stylelint-disable-next-line declaration-no-important */
    padding: 0 !important;

    & button {
      /* stylelint-disable-next-line declaration-no-important */
      padding: 0 !important;
    }
  }
}

.project-data {
  display: flex;
  flex-direction: column;
  font-weight: var(--font-weight-medium);
  justify-content: space-between;
  max-inline-size: calc(100% - var(--spacing-44));

  & span {
    display: block;
  }

  & .project-workspace {
    @mixin ellipsis;

    font-weight: var(--font-weight-regular);
    line-height: 1.2;
  }
}

.project {
  block-size: 32px;
  box-sizing: content-box;
  display: flex;
  gap: var(--spacing-12);
  inline-size: auto;
  justify-content: flex-start;
  max-inline-size: 100%;
  overflow: hidden;
  padding: var(--spacing-8);
}

.project-image {
  & img {
    all: unset;
    aspect-ratio: 1/1;
    inline-size: 32px;
  }
}

.view-projects {
  color: var(--color-secondary);
  display: inline-block;
  font-weight: var(--font-weight-semibold);
  margin-block-end: 1rem;
}

.empty-recent {
  border-block-end: 1px solid var(--color-gray30);
  color: var(--color-gray70);
  display: block;
  margin-block-end: var(--spacing-16);
  padding-block-end: var(--spacing-16);
  padding-block-start: var(--spacing-16);
}
